home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 11
/
CU Amiga Magazine's Super CD-ROM 11 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-06].iso
/
cucd
/
programming
/
stormc-demo
/
rexx
/
catcomp.srx
< prev
next >
Wrap
Text File
|
1996-11-10
|
931b
|
35 lines
/*
catcomp.srx
Compile a catalog description file to an C header file.
© 1996 HAAGE & PARTNER GmbH
$VER catcomp.srx 1.0 (4.11.96)
Warning: The function "GetString()" which will be generated by catcomp and
used by setting "#define CATCOMP_CODE" ever uses the global symbol
_LocaleBase for calling the function "GetCatalogStr()" from locale.library
and not the expression li->li_LocaleBase.
*/
/* Don't forget the point '.' at the end \/ */
PARSE ARG '"' filename '"' '"' projectname '"' .
/* Replace suffix ".cd" by ".h" */
objectname = LEFT(filename,LASTPOS('.cd',filename)-1)||".h"
SAY ""
SAY "Catcomp Script ©1996 HAAGE & PARTNER GmbH"
SAY "Compile "||filename||" to header "||objectname||"."
/* set object file of catalog file */
OBJECTS filename objectname
/* compile */
ADDRESS COMMAND "catcomp "||filename||" CFILE "||objectname
/* add object file to project */
ADDFILE objectname QUIET